package com.cskaoyan.bean.chaosbean.config.bo;

import lombok.Data;

import javax.validation.constraints.Min;
import java.util.ArrayList;
import java.util.HashMap;

/**
 * @author 楚夏三分
 * @datetime 2022/12/31 10:05
 * @description: TODO:
 */
@Data
public class AdminConfigOrderBo {

    @Min(0)
    private Integer market_order_unconfirm;
    @Min(0)
    private Integer market_order_unpaid;
    @Min(0)
    private Integer market_order_comment;

    public static  ArrayList<String>  getList(){
        ArrayList<String> list = new ArrayList<>();
        list.add("market_order_unconfirm");
        list.add("market_order_unpaid");
        list.add("market_order_comment");

        return list;

    }

    public static HashMap<String,String> getMap(AdminConfigOrderBo adminConfigOrderBo){
        HashMap<String, String> map = new HashMap<>();
        map.put("market_order_unconfirm",adminConfigOrderBo.getMarket_order_unconfirm().toString());
        map.put("market_order_unpaid",adminConfigOrderBo.getMarket_order_unpaid().toString());
        map.put("market_order_comment",adminConfigOrderBo.getMarket_order_comment().toString());

        return map;

    }


}
